import axios from '../utils/axios'


// 请求路由配置的接口
export const fetchRoutes = async () => {
    try {
        const result = await axios.post('/RolePermission/GetVueRouterResult',
            { ids: ['1860957227343548416'], all: true });
        if (result.statusCode == 200 && result.success == true) {
            return result.response
        }
    } catch (error) {
        console.error('获取路由配置失败:', error);
        return [];
    }
};
